package com.csxy.dyq.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "EduCourse对象", description = "课程")
public class EduCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(name = "课程ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(name = "课程讲师ID")
    private String teacherId;

    @Schema(name = "课程标题")
    private String title;

    @Schema(name = "课程专业ID")
    private String subjectId;
    @Schema(name = "一级分类ID")
    private String subjectParentId;

    @Schema(name = "课程销售价格,设置为0则可免费观看")
    private String price;

    @Schema(name = "总课时")
    private Integer lessonNum;

    @Schema(name = "课程封面图片路径")
    private String cover;

    @Schema(name = "销售数量")
    private String buyCount;

    @Schema(name = "浏览数量")
    private Long viewCount;

    @Schema(name = "乐视频")
    private String version;

    @Schema(name = "课程状态 Draft未发布 Normal已发布")
    private String status;

    @Schema(name = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted = 0;

    @Schema(name = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtCreate;

    @Schema(name = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;



}
